package com.huluobo.kotlinim1907a.contract.login

import com.huluobo.kotlinim1907a.contract.BasePresenter

/**
 * Created by lc on 2022/1/12.
 */
interface LoginContract {
    //实现功能
    interface Presenter : BasePresenter {
        fun login(userName: String, password: String)
    }

    //UI反馈
    interface View {
        fun onUserNameError()
        fun onPasswordError()
        fun onStartLogin()//为了触发弹出登录进度条
        fun onLoggedInSuccess()
        fun onLoggedInFailed()
    }
}